{include file="public/header" /}
<div class="w_container">
    <div class="container">
        <div class="row w_main_row">
            <div class="col-lg-9 col-md-9 w_main_left">
                <!--滚动图开始-->
                <div class="panel panel-default">

                    <div id="w_carousel" class="carousel slide w_carousel" data-ride="carousel">
                        <!-- Indicators -->
                        <ol class="carousel-indicators">
                            <li data-target="#w_carousel" data-slide-to="0" class="active"></li>

                            {for start="1" end="$bannerNum"}
                                <li data-target="#w_carousel" data-slide-to="{$i}"></li>
                            {/for}
                        </ol>

                        <!-- Wrapper for slides -->
                        <div class="carousel-inner" role="listbox">
                                {volist name="banners" id="vo" key="k" }
                                    {if condition="$k eq 1"}
                                    <div class="item active">
                                    {else /}
                                     <div class="item">
                                     {/if}
                                        <img src="{$vo.image}" alt="...">
                                        <div class="carousel-caption">
                                            <h3>{$vo.title}</h3>
                                            <p>{$vo.description}</p>
                                        </div>
                                    </div>
                                {/volist}
                        </div>

                        <!-- Controls -->
                        <a class="left carousel-control" href="#w_carousel" role="button" data-slide="prev">
                            <span class="glyphicon glyphicon-chevron-left"></span>
                            <span class="sr-only">Previous</span>
                        </a>
                        <a class="right carousel-control" href="#w_carousel" role="button" data-slide="next">
                            <span class="glyphicon glyphicon-chevron-right"></span>
                            <span class="sr-only">Next</span>
                        </a>
                    </div>

                </div>

                <div class="panel panel-default contenttop">
                    <a href="article_detail.html">
                        <strong>博主置顶</strong>
                        <h3 class="title">嫁人就嫁程序员</h3>
                        <p class="overView">个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中。。。</p>
                    </a>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">最新发布</h3>
                    </div>

                    <div class="panel-body">

                        <!--文章列表开始-->
                        <div class="contentList">



                            <!--没有图片的内容-->
                            {volist name="articles" id="vo"}
                            {if condition="$vo.image eq ''"}
                            <div class="panel panel-default">
                                <div class="panel-body">

                                    <h4><a class="title" href="{:url('article/detail',['id'=>$vo.id])}">{$vo.title}</a></h4>
                                    <p>
                                        {volist name="vo['articleTag']" id="sub"}
                                        <a class="label label-default">{$sub.name}</a>

                                        {/volist}
                                    </p>
                                    <p class="overView">{$vo.description}</p>
                                    <p><span class="count"><i class="glyphicon glyphicon-user"></i><a href="#">{$vo.username}</a></span> <span class="count"><i class="glyphicon glyphicon-eye-open"></i>阅读:{$vo.reading}</span><span class="count"><i class="glyphicon glyphicon-comment"></i>评论:0</span><span class="count"><i class="glyphicon glyphicon-time"></i>{$vo.create_time|date="Y-m-d", ###}</span></p>

                                </div>
                            </div>
                            {else /}

                            <!--有图片的内容-->
                            <div class="panel panel-default">
                                <div class="panel-body">
                                    <div class="contentleft">
                                        <h4><a class="title" href="{:url('article/detail',['id'=>$vo.id])}">{$vo.title}</a></h4>
                                        <p>
                                            {volist name="vo['articleTag']" id="sub"}
                                                <a class="label label-default">{$sub.name}</a>

                                            {/volist}
                                        </p>
                                        <p class="overView">{$vo.description}</p>
                                        <p><span class="count"><i class="glyphicon glyphicon-user"></i><a href="#">{$vo.username}</a></span> <span class="count"><i class="glyphicon glyphicon-eye-open"></i>阅读:{$vo.reading}</span><span class="count"><i class="glyphicon glyphicon-comment"></i>评论:0</span><span class="count"><i class="glyphicon glyphicon-time"></i>{$vo.create_time|date="Y-m-d", ###}</span></p>
                                    </div>
                                    <div class="contentImage">
                                        <div class="row">
                                            <a href="#" class="thumbnail w_thumbnail">
                                                <img src="{$vo.image}" alt="...">
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            {/if}
                            {/volist}





                        </div>
                        <!--文章列表结束-->

                    </div>
                </div>
            </div>

            <!--左侧开始-->
            <div class="col-lg-3 col-md-3 w_main_right">

                <div class="panel panel-default sitetip">
                    <a href="article_detail.html">
                        <strong>站点公告</strong>
                        <h3 class="title">嫁人就嫁程序员</h3>
                        <p class="overView">个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中。。。</p>
                    </a>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">热门标签</h3>
                    </div>
                    <div class="panel-body">
                        <div class="labelList">
                            {volist name='tags' id='vo'}
                                <a class="label label-default">{$vo.name}</a>
                            {/volist}

                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">最新发布</h3>
                    </div>
                    <div class="panel-body">
                        <ul class="list-unstyled sidebar">
                            {volist name='articles' id='vo'}
                            <li>
                                <a href="{:url('article/detail',['id'=>$vo.id])}">{$vo.title}</a>
                            </li>
                            {/volist}

                        </ul>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">友情链接</h3>
                    </div>
                    <div class="panel-body">
                        <div class="newContent">
                            <ul class="list-unstyled sidebar shiplink">

                                <li>
                                    <a href="http://www.thinkphp.cn/" target="_blank">thinkPHP框架</a>
                                </li>
                                <li>
                                    <a href="http://www.h-ui.net/" target="_blank">H-ui</a>
                                </li>

                            </ul>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">关注微信公众号</h3>
                    </div>
                    <div class="panel-body">
                        <img src="__STATIC__/index/img/qrcode.jpg" style="height: 230.5px;width: 230.5px;" />
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}
